man=0
feman=0
import random  

for i in range(999999):
    j=1;
    while j<=90:
        r = random.random()
        if(r>=0.5):
            feman+=1;
        else:
            man+=1;
            if(j>1):
                break;
        j+=1;
        
print(man)
print(feman)
